

# 上传文件到远端服务器
# jar 包
SCP -i C:/Users/86187/.ssh/bigmarket.pem E:/ddd-project/big-market/big-market-app/target/big-market-app.jar root@111.230.105.93:/root/big-market/big-market-data
# Dockerfile                             E:/ddd-project/big-market-app/target/big-market-app.jar
SCP -i C:/Users/86187/.ssh/bigmarket.pem E:/ddd-project/big-market/big-market-app/Dockerfile root@111.230.105.93:/root/big-market/big-market-data
# build.sh
SCP -i C:/Users/86187/.ssh/bigmarket.pem E:/ddd-project/big-market/big-market-app/build.sh root@111.230.105.93:/root/big-market/big-market-data
# start.sh
SCP -i C:/Users/86187/.ssh/bigmarket.pem E:/ddd-project/big-market/big-market-app/start.sh root@111.230.105.93:/root/big-market/big-market-data
# docker-compose-app.yml
SCP -i C:/Users/86187/.ssh/bigmarket.pem E:/ddd-project/big-market/docs/dev-ops/environment/docker-compose-app.yml root@111.230.105.93:/root/big-market/big-market-data
# rabbitMQ
SCP -i C:/Users/86187/.ssh/bigmarket.pem -r E:/ddd-project/big-market/docs/dev-ops/environment/rabbitmq root@111.230.105.93:/root/big-market/big-market-data
# redis
SCP -i C:/Users/86187/.ssh/bigmarket.pem -r E:/ddd-project/big-market/docs/dev-ops/environment/redis root@111.230.105.93:/root/big-market/big-market-data
# docker-compose-environment.yml
SCP -i C:/Users/86187/.ssh/bigmarket.pem E:/ddd-project/big-market/docs/dev-ops/environment/docker-compose-environment.yml root@111.230.105.93:/root/big-market/big-market-data

# 使用SSH密钥，确保已经在本地和远端服务器之间设置了密钥认证，如果未设置请不要使用这个选项。
ssh -i C:/Users/86187/.ssh/bigmarket.pem root@111.230.105.93
# shellcheck disable=SC2164
cd /root/project/big-market/big-market-app
chmod +x ./build.sh ./start.sh

./build.sh
./start.sh

SCP -r -i C:/Users/86187/.ssh/bigmarket.pem E:/clash_linux/clash-for-linux-master root@111.230.105.93:/root
# shellcheck disable=SC2164
cd clash-for-linux-master
vim .env
telnet -a 111.230.105.93 -p 16380
# shellcheck disable=SC2211
https://13fc5cf9-f37f-46ce-b1e4-2a996d689731.ppgnginx.com/api/v1/client/subscribe?token=31241d82386c894548ac5414f60f1d4c&flag=shadowrocket


ssh -i C:/Users/86187/.ssh/bigmarket.pem root@111.230.105.93
chmod -R 777 /root/clash-for-linux-master
vim /etc/profile
export http_proxy=127.0.0.1:7890
export https_proxy=127.0.0.1:7890
source /etc/profile

/root/clash-for-linux-master/start.sh
source /etc/profile.d/clash.sh
proxy_on
proxy_off

# 代理
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890

